<!--
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-09-05 19:49:02
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-09-20 16:33:35
 * @FilePath: \project\pyy\src\views\purchase\qualityDetail.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div id="qualityDetail">
        <van-nav-bar title="质量要求详情" left-arrow @click-left="back" />
        <div class="content">
            {{ text }}
        </div>
    </div>
</template>

<script>
export default {
    name: "Home",
    data() {
        return {
            id: null,
            text: "",
        };
    },
    mounted() {
        this.getQualityDetail();
    },
    methods: {
        // 获取质量要求文本
        getQualityDetail() {
            this.text = this.$route.params.msg;
            this.id = this.$route.params.id;
        },
        // 返回
        back() {
            this.$router.push({
                path: "/purchaseDetails",
                query: { id: this.id },
            });
        },
    },
};
</script>
<style lang="less" scoped>
#qualityDetail {
    width: 100vw;
    min-height: 100vh;
    .content {
        padding: 10px;
        font-family: "Inter";
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        line-height: 19px;

        color: #000000;
    }
    /deep/ .van-ellipsis {
        overflow: visible;
    }
    /deep/ .van-nav-bar__left {
        padding: 8px;
    }
    /deep/ .van-nav-bar__content {
        height: 51px;
    }
    /deep/ .van-nav-bar__title {
        font-family: "Inter";
        font-style: normal;
        font-weight: 600;
        font-size: 18px;
        line-height: 20px;
        /* identical to box height, or 111% */

        text-align: center;
        letter-spacing: -0.24px;

        color: #333333;
    }
    /deep/ .van-nav-bar .van-icon {
        /* 文字颜色3 */

        color: #999999;
    }
}
</style>
